'use strict';

const Controller = require('egg').Controller;

// 定义创建接口的请求参数规则
const testParamsRule = {
  params: { type: 'enum', values: [ 'carrfqt', 'carrpower', 'carrband', 'sens' ], required: true },

};

class SpecialTest_17xController extends Controller {
  async index() {
    const { ctx } = this;
    const query = ctx.query;
    ctx.validate(testParamsRule, query);
    ctx.body = query;
  }
}

module.exports = SpecialTest_17xController;
